package com.online.customerchatserver.service;

import com.online.customerchatserver.service.impl.WebSocketServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 *   WebSocket调度集群接口
 *   @author hsc
 *   @create 2018-04-24 10:35
 */
@FeignClient(name="websocket-cluster",fallback= WebSocketServiceImpl.class)
public interface WebSocketService {

    /**
     * 发送消息通知给坐席
     * @param map
     * @return
     */
    @PostMapping(path = "/sendMessages")
    Map sendMessages(@RequestBody Map map);

}
